//
//  User.swift
//  WeiBo09
//
//  Created by 裘明 on 15/9/13.
//  Copyright © 2015年 qm. All rights reserved.
//

import UIKit
///  用户模型数据
class User: NSObject {
    /// 用户UID
    var id:	Int = 0
    /// 友好显示名称
    var name:String?
    /// 用户头像地址（中图），50×50像素
    var profile_image_url: String?
    /// 是否是微博认证用户，即加V用户，true：是，false：否
    var verified: Int = 0
    /// 会员等级
    var mbrank: Int = 0
    
    init(dict: [String: AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {  }
    
    override var description: String {
        let keys = ["id", "name", "profile_image_url", "verified", "mbrank"]
        return dictionaryWithValuesForKeys(keys).description
    }
    
    
}
